package org.wk.news.domain;

import org.hibernate.annotations.GenericGenerator;
import org.wk.core.db.domain.BaseEntity;

import javax.persistence.*;

/**
 * @ClassName NewsClassifieds
 * @Description 资讯分类
 * @Author ZhaoPing'an
 * @Date 2018/6/5 9:36
 */
@Entity(name="org.wk.news.domain.NewsClassifieds")
@Table(name="j_news_classifieds")
public class NewsClassifieds extends BaseEntity {
    /**
     * @Fields serialVersionUID: long
     * @Desc TODO:
     */
    private static final long serialVersionUID = 1L;
    @Id
    @Column(name = "id", unique = true, nullable = false, length = 32)
    @GeneratedValue(generator="system-uuid")
    @GenericGenerator(name="system-uuid",strategy = "uuid")
    private String id;

    // 资讯分类名称
    @Column
    private String classifiedsName;

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getClassifiedsName() {
        return classifiedsName;
    }

    public void setClassifiedsName(String classifiedsName) {
        this.classifiedsName = classifiedsName;
    }
}
